package model

type StockUserBulletin struct {
	Id          int        `gorm:"column:id;primary_key;AUTO_INCREMENT"`
	CustomerId  string     `gorm:"column:customer_id;NOT NULL;comment:'用户ID'"`
	BulletinId  int64      `gorm:"column:bulletin_id;NOT NULL;comment:'消息ID'"`
	Status      int32      `gorm:"column:status;default:1;comment:'状态 1.已读 2.未读 '"`
	CreateTime  *LocalTime `gorm:"column:create_time;default:CURRENT_TIMESTAMP;NOT NULL"`
	LastUpdTime *LocalTime `gorm:"column:last_upd_time;default:CURRENT_TIMESTAMP;NOT NULL"`
}

func (s *StockUserBulletin) TableName() string {
	return "stock_user_bulletin"
}
